package com.coder.spit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * @BelongsProject:coder_parent
 * @BelongsPackage:com.coder.spit
 * @Author:linchong
 * @CreateTime:2019-01-02 11:18
 * @Description:
 */
@SpringBootApplication
public class SpitApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpitApplication.class,args);
    }

    //自己指定id生成
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
